<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>登录 - {$config_sitename}</title>
    <meta content="" name="keywords">
    <meta content="" name="description">
    <link rel="stylesheet" href="__CSS__/global.css" />
    <Admintemplate file="Home/Public/global_js"/>
    <script src="__JS__/jquery.min.js"></script>
</head>

<body>

<div class="b-page">
    <Admintemplate file="Home/Public/header"/>
    <div class="b-login">
        <div class="b-body l-center" style="padding-top:30px;">
            <div class="b-login__top">
                <a href="javascript:;" class="b-login__tab act">用户登录</a>
                <a href="__WEBURL__/user/login/register" class="b-login__tab b-login__tab2">注册</a>
                <div class="b-login__title"><img class="pic_mid" src="__IMAGES__/111.png"></div>
            </div>
            <div class="b-login__body">
                <form onsubmit="return false">
                    <input type="hidden" id="backurl" value="{$backurl}"/>
                <div class="b-login__left">
                    <div class="ofh l-mgb20">
                        <div class="b-login__col1">账号：</div>
                        <div class="b-login__col2"><input type="text" name="uname" id="uname" title="请输入账号" required minlength="3" placeholder="请输入账号" /></div>
                    </div>
                    <div class="ofh l-mgb20">
                        <div class="b-login__col1">密码：</div>
                        <div class="b-login__col2"><input type="password" name="password" id="password"  title="请输入6-15位的密码!" required minlength="6" placeholder="请输入密码"></div>
                    </div>
                    <div class="errmsg"></div>

                    <div class="ofh l-mgb20">
                        <div class="b-login__col3" style="height:32px;line-height:32px;">
                            <input type="checkbox" name="autoLogin" id="autoLogin" value="1" class="pic_mid">
                            <label for="auto">两周内自动登录</label>
                        </div>
                    </div>
                    <div class="ofh l-mgb20">
                        <div class="b-login__col4">
                            <button type="submit" class="login" id="loginSubmit">登录</button>
                            <a href="/user/login/forget" class="b-login__forget">忘记密码？</a>
                        </div>
                    </div>
                    <div class="ofh l-mgb20">
                        <div class="b-login__col4">
                            <div class="b-login__hezuoTitle">使用合作账号登录</div>
                        </div>
                    </div>
                    <div class="ofh l-mgb20">
                        <div class="b-login__col4">
                            <div class="b-login__hezuoList">
                                <a href="{:U('/user/login/login?type=qq')}" class="b-login__hezuoItem"><img class="l-full" src="__IMAGES__/icon_login_qq.png"></a>
                                <a href="{:U('/user/login/login?type=sina')}" class="b-login__hezuoItem"><img class="l-full" src="__IMAGES__/icon_login_weibo.png"></a>
                            </div>
                        </div>
                    </div>
                </div>
                </form>
                <div class="b-login__right">
                    <a href="" class="b-login__advert"><img src="__IMAGES__/login_advert.jpg"></a>
                </div>
            </div>
        </div>
    </div>

    <Admintemplate file="Home/Public/footer"/>

</div>

<script src="__JS__/index.js"></script>
<script src="__JS__/user.js"></script>
<script>
    user.login();
    $(document).ready(function(){
        $('.b-dongtaiItem').each(function(i,val){
            if(i%3==0) $(this).addClass('b-dongtaiItem_first');
        });
        $('.b-input__placeholder').on('click',function(){
            $(this).hide().prev().focus();
        });
        $('.b-login__col2>input').on('blur',function(){
            if($(this).val()=='') $(this).next().show();
        });
    });
</script>

</body>
</html>